package com.provider.service.impl;

import com.conmmon.service.DubboDemoService;
import com.conmmon.service.dto.UserReq;
import com.conmmon.service.dto.UserResp;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * impl
 *
 * @author H
 * @version 1.0
 * @date 2023-08-21 14:41
 */

@DubboService(version = "1.0.0")
public class DubboDemoImpl implements DubboDemoService {

    @Override
    public String helloDubbo(String name) {
        return "hello " + name;
    }

    @Override
    public UserResp queryUserInfo(UserReq req) {
        return UserResp.builder().id(req.getId()).name("demo").build();
    }
}
